	<!-- THIS IS THE TITLE HEADER-->
      <div class="top-bar"> 
        <h1>Shifts - <?php echo $_SESSION['name'];?></h1>
        <div class="breadcrumbs"><a href="../../index.php">Home</a> / 
								 <a href="../index.php">Management</a> / 
								 <a href="../control/c_maintenance.php">Maintenance</a> / 
								 Shifts</div>
	  </div>
	<!-- ENDS TITLE HEADER-->
	
	
	<!-- YOUR CONTENT SECTION BEGINS HERE-->
	
	<!-- Shifts management table-->	
	<p>&nbsp </p>
	   <div class="table"> <img src="../images/bg-th-left.gif" width="8" height="7" alt="" class="left" /> <img src="../images/bg-th-right.gif" width="7" height="7" alt="" class="right" />
        <table class="listing" cellpadding="0" cellspacing="0">
          <tr>
            <th class="first" width="100">Name</th>
            <th width="80">Start Time</th>
            <th width="80">End Time</th>
            <th width="300">Description</th>
            <th>&nbsp </th>
            <th class="last">&nbsp</th>
          </tr>	
		  
		<?php
		
		
		for($i=0;$i <= sizeof($this->data)-1;$i++){
			$trClassEnabled= '';
			if(($i % 2)==0)
				$trClassEnabled = 'class="bg"';
			echo "<tr ".$trClassEnabled.">\n";
            echo "<td class='first style2'>".$this->data[$i][1]."</td>\n";
            echo "<td>".$this->data[$i][2]."</td>\n";
            echo "<td>".$this->data[$i][3]."</td>\n";
            echo "<td>".$this->data[$i][4]."</td>\n";
            echo "<td class='last'>
				  <a href=\"c_maintenance_shifts.php?edit=".$this->data[$i][0]."\">
				  <img src='../images/edit-icon.gif' width='16' height='16' alt='Edit' title='Edit'/>
				  </td>\n";			
            echo "<td class='last'>
				  <a href=\"c_maintenance_shifts.php?delete=".$this->data[$i][0]."\">
				  <img src='../images/hr.gif' width='16' height='16' alt='Delete' title='Delete' /></td>\n";
			echo "</tr>\n";
		}
		
		?>
		<tr>
			<td colspan=6>
				<a href="c_maintenance_shifts.php?add=go"><img src="../images/add-icon.gif" width="16" height="16" alt="add" /></a>
			</td>
		</tr>
        </table>
		
      </div>		  
	<!-- GENERAL SETTINGS START-->	  
	  
	<!-- GENERAL SETTINGS START-->
	<!--
	<p>&nbsp;</p>
	
	 <div class="table"> <img src="../images/bg-th-left.gif" width="8" height="7" alt="" class="left" /> <img src="../images/bg-th-right.gif" width="7" height="7" alt="" class="right" />
		<table class="listing form" cellpadding="0" cellspacing="0">
		  <tr>
			<th class="full" colspan="2">General Settings</th>
		  </tr>
		  <tr>
			<td class="first" width="172"><strong>Setting 1</strong></td>
			<td class="last"><input type="text" class="text" /></td>
		  </tr>
		  <tr class="bg">
			<td class="first"><strong>Setting 2</strong></td>
			<td class="last"><input type="text" class="text" /></td>
		  </tr>
		</table>
		<p>&nbsp;</p>
	  </div>
	-->
	
	<!-- YOUR CONTENT SECTION ENDS HERE-->

